#include "dataconfig.h"

dataconfig::dataconfig(QObject* parent):QObject(parent)
{
    //第一关地图
    int array_1[19][19]={{1,1,1,1,0,1,1,1,1,1,1,1,1,1,0,1,1,1,1},
                         {1,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,1},
                         {1,0,1,1,0,1,0,1,0,0,0,1,0,1,0,1,1,0,1},
                         {1,0,1,1,0,1,0,1,1,1,1,1,0,1,0,1,1,0,1},
                         {1,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,1},
                         {1,1,1,1,0,1,1,1,0,1,0,1,1,1,0,1,1,1,1},
                         {1,0,0,0,0,1,0,0,0,0,0,0,0,1,0,0,0,0,1},
                         {1,1,1,1,0,1,0,1,0,0,0,1,0,1,0,1,1,1,1},
                         {0,0,0,0,0,0,0,1,0,0,0,1,0,0,0,0,0,0,0},
                         {1,1,1,1,0,1,0,1,1,1,1,1,0,1,0,1,1,1,1},
                         {1,0,0,0,0,1,0,0,0,0,0,0,0,1,0,0,0,0,1},
                         {1,1,1,1,0,1,0,1,1,1,1,1,0,1,0,1,1,1,1},
                         {1,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,1},
                         {1,0,1,1,0,1,1,1,0,1,0,1,1,1,0,1,1,0,1},
                         {1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1},
                         {1,1,0,1,0,1,0,1,1,1,1,1,0,1,0,1,0,1,1},
                         {1,1,0,1,0,1,0,1,1,1,1,1,0,1,0,1,0,1,1},
                         {1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1},
                         {1,1,1,1,0,1,1,1,1,1,1,1,1,1,0,1,1,1,1}};
    QVector<QVector<int>>v;
    for(int i=0;i<19;i++)
    {
        QVector<int>v1;
        for(int j=0;j<19;j++)
        {
            v1.push_back(array_1[i][j]);
        }
        v.push_back(v1);
    }
    mData.insert(1,v);
    //第二关地图
    int array_2[19][19]={{1,1,1,1,1,1,1,1,1,0,1,1,1,0,1,1,1,1,1},
                         {0,0,0,0,0,0,0,1,0,0,1,0,0,0,1,0,1,0,0},
                         {1,0,0,0,1,0,0,1,0,0,1,0,1,0,1,0,1,0,1},
                         {1,1,1,0,1,0,0,1,1,0,1,0,1,0,1,0,1,1,1},
                         {1,0,0,0,0,0,0,0,1,0,0,0,0,0,1,0,0,0,1},
                         {1,0,0,1,0,0,0,1,1,1,1,1,0,0,0,0,0,0,1},
                         {1,0,0,1,0,0,0,0,0,0,0,0,0,0,0,1,0,0,1},
                         {1,0,0,1,0,1,0,1,0,0,0,1,0,0,0,1,0,0,1},
                         {1,0,0,1,0,1,0,1,0,0,0,1,0,1,0,1,0,0,1},
                         {0,0,0,1,0,1,0,1,1,1,1,1,0,1,0,1,0,0,0},
                         {1,0,0,1,0,1,0,0,0,0,0,0,0,1,0,0,0,0,1},
                         {1,0,0,1,0,0,0,0,0,0,0,0,0,1,0,0,0,0,1},
                         {1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1},
                         {1,0,0,0,1,1,1,1,1,1,1,0,0,0,0,0,0,0,1},
                         {1,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,1},
                         {1,1,1,1,1,0,0,0,0,1,1,1,0,1,0,0,0,0,1},
                         {1,0,0,0,1,1,1,0,0,0,0,1,0,1,1,1,0,0,1},
                         {0,0,0,0,1,0,0,0,0,0,0,1,0,0,0,1,0,0,0},
                         {1,1,1,1,1,1,1,1,1,0,1,1,1,0,1,1,1,1,1}};
    v.clear();
    for(int i=0;i<19;i++)
    {
        QVector<int>v1;
        for(int j=0;j<19;j++)
        {
            v1.push_back(array_2[i][j]);
        }
        v.push_back(v1);
    }
    mData.insert(2,v);
    //第三关地图
    int array_3[19][19]={{1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1},
                         {1,0,0,0,0,0,0,1,0,0,0,1,0,0,0,0,0,0,1},
                         {1,0,1,1,0,1,0,1,0,0,0,1,0,1,0,1,1,0,1},
                         {1,0,0,0,0,1,0,1,0,0,0,1,0,1,0,0,0,0,1},
                         {1,0,1,1,0,1,0,0,0,1,0,0,0,1,0,1,1,0,1},
                         {1,0,1,0,0,1,1,1,0,1,0,1,1,1,0,0,1,0,1},
                         {0,0,1,0,0,0,0,0,0,1,0,0,0,0,0,0,1,0,0},
                         {0,0,1,0,1,1,0,1,1,1,1,1,0,1,1,0,1,0,0},
                         {1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1},
                         {1,0,1,1,0,1,0,1,0,0,0,1,0,1,0,1,1,0,1},
                         {1,0,1,1,0,1,0,1,0,0,0,1,0,1,0,1,1,0,1},
                         {1,0,0,0,0,1,0,1,1,1,1,1,0,1,0,0,0,0,1},
                         {1,0,0,1,0,1,0,0,0,0,0,0,0,1,0,1,0,0,1},
                         {1,1,0,1,0,1,0,1,1,1,1,1,0,1,0,1,0,1,1},
                         {0,0,0,1,0,0,0,0,0,1,0,0,0,0,0,1,0,0,0},
                         {0,0,1,1,0,1,1,1,0,1,0,1,1,1,0,1,1,0,0},
                         {1,0,0,0,1,1,0,0,0,1,0,0,0,1,1,0,0,0,1},
                         {1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1},
                         {1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1}};
    v.clear();
    for(int i=0;i<19;i++)
    {
        QVector<int>v1;
        for(int j=0;j<19;j++)
        {
            v1.push_back(array_3[i][j]);
        }
        v.push_back(v1);
    }
    mData.insert(3,v);
    //第四关地图
    int array_4[19][19]={{1,1,1,1,1,1,1,1,0,1,0,1,1,1,1,1,1,1,1},
                         {1,1,1,1,0,0,0,0,0,1,0,0,0,0,1,1,1,1,1},
                         {1,1,0,0,0,0,1,0,0,1,0,0,1,0,0,1,1,1,1},
                         {1,1,0,1,0,1,1,0,0,1,0,0,1,1,0,0,1,1,1},
                         {0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,1,1},
                         {0,1,1,1,0,1,1,1,1,1,1,1,0,0,1,0,0,0,1},
                         {0,0,0,0,0,1,1,1,0,0,0,0,0,0,1,1,1,0,1},
                         {1,1,1,1,0,0,0,0,0,1,1,1,1,0,0,0,0,0,1},
                         {1,1,1,1,1,1,1,1,0,0,0,0,1,0,1,0,0,0,1},
                         {1,1,1,1,1,1,1,1,1,1,0,0,1,0,1,0,0,0,1},
                         {1,1,1,1,1,1,1,1,0,0,0,0,1,0,1,1,1,1,1},
                         {1,1,1,1,0,0,0,0,0,1,1,1,1,0,0,0,0,0,1},
                         {0,0,0,0,0,1,1,1,0,0,0,0,0,0,1,1,1,0,1},
                         {0,1,1,1,0,1,1,1,1,1,1,1,1,0,1,0,0,0,1},
                         {0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,1,1},
                         {1,1,0,1,0,1,1,1,0,1,0,1,1,1,0,0,1,1,1},
                         {1,1,0,0,0,0,0,1,0,1,0,1,0,0,0,1,1,1,1},
                         {1,1,1,1,0,0,0,0,0,1,0,0,0,0,1,1,1,1,1},
                         {1,1,1,1,1,1,1,1,0,1,0,1,1,1,1,1,1,1,1}};
    v.clear();
    for(int i=0;i<19;i++)
    {
        QVector<int>v1;
        for(int j=0;j<19;j++)
        {
            v1.push_back(array_4[i][j]);
        }
        v.push_back(v1);
    }
    mData.insert(4,v);
}
